from rest_framework.serializers import ModelSerializer
from rest_framework import serializers
from home.models import NavModel,BannerModel

class NavSerializer(serializers.ModelSerializer):

    class Meta:
        model = NavModel
        fields = ["id","navname","link","ishttp"]

class BannerSerializer(serializers.ModelSerializer):
    class Meta:
        model = BannerModel
        fields = ["id", "title", "link", "ishttp",'fimg']